
import variables from '@/style/variables.module.scss'

const getters = {
  token: (state: any) => state.user.token,
  hasUserInfo: (state: any) => JSON.stringify(state.user.userInfo) !== '{}',
  userInfo: (state: any) => state.user.userInfo,
  menuTree: (state: any) => state.user.menuTree,
  menuMap: (state: any) => state.user.menuMap,
  cssVar: () => variables,
  collapse: (state: any) => state.app.collapse
}

export default getters
